<style>
  .basemenus3_table1 {
    width: 138px;
    height: 180px;
    background-color:#ebebe3;
  }
  .basemenus3_table2 {
    width: 140px;
    height: 60px;
  }
  .basemenus3_table3 {
    width: 140px;
    height: 30px;
  }
  .basemenus3_td1 {
    background-image: url(images/common/headline.png);
    background-repeat: repeat-x;
    border-right: solid 1px #8F8F8A;
    width: 140px;
    height: 25px;
    text-align: left;
    vertical-align: middle;
    padding: 0 0 0 13px;
    font-size: 111%;
    font-weight: bold;
    color: #633e36;
  }
  .basemenus3_td2 {
    height: 5px;
    border-right:solid 1px #b3b3ad;
    border-left:solid 1px #ffffff;
  }
  .basemenus3_td3 {
    height: 30px;
    border-right:solid 1px #b3b3ad;
    border-left:solid 1px #ffffff;
  }
  .basemenus3_td4 {
    height: 6px;
    border-right:solid 1px #b3b3ad;
    border-bottom:solid 1px #b3b3ad;
    border-left:solid 1px #ffffff;
  }
  .basemenus3_td5 {
    padding: 0 0 0 8px;
    font-size: 13px;
    font-weight: bold;
    font-family: 宋体;
    color: #633e36;
    height: 30px;
    cursor: pointer;
  }
  .basemenus3_td6 {
    padding: 0 0 0 8px;
    font-size: 13px;
    font-weight: regular;
    font-family: 宋体;
    color: #633e36;
    height: 30px;
    cursor: pointer;
  }
  .basemenus3_td6:hover,.basemenus3_td5:hover {
    color:#ff8800;
  }
  .basemenus3_td7 {
    background-color: #e1d6c6;
    padding: 0 0 0 8px;
    font-size: 13px;
    font-weight: bold;
    font-family: 宋体;
    color: #633e36;
    height: 22px;
  }
  .basemenus3_td71 {
    background-color: #ebebe3;
    padding: 0 0 0 8px;
    font-size: 13px;
    font-weight: bold;
    font-family: 宋体;
    color: #633e36;
    height: 22px;
  }

</style>
{{if $menu->a == 1}}
  {{if $supervise->s == 3}}
    <div class="basemenus3_div">
      <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
        <tr>
          <td class="basemenus3_td1">
            Manage Tasks
          </td>
        <tr>
        <tr>
          <td class="basemenus3_td2"></td>
        </tr>
        <tr>
          <td class="basemenus3_td3">
            <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
              <tr>
                <td class="basemenus3_td5" {{if $menu->c == 1}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageserv&t=pageb1factoryworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:3}'">全部任务<span id="factory_tasks_factoryTasks_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td7">接收任务</td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 2}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageserv&t=pageb1receive&m={%22a%22:1,%22b%22:2,%22c%22:2}&s={%22s%22:3}'">接收产品<span id="factory_tasks_receive4x6_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td7">产品任务</td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 3}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageserv&t=pageb1downloadprint&m={%22a%22:1,%22b%22:2,%22c%22:3}&s={%22s%22:3}'">下载打印大样<span id="factory_tasks_downloadAndPrint_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 4}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageserv&t=pageb1manufacture&m={%22a%22:1,%22b%22:2,%22c%22:4}&s={%22s%22:3}'">完成产品<span id="factory_tasks_complete_span"></span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td class="basemenus3_td4"></td>
        </tr>
      </table>
    </div>
  {{else}}
  {{if $supervise->s == 4}}
    <div class="basemenus3_div">
      <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
        <tr>
          <td class="basemenus3_td1">
            Manage Tasks
          </td>
        <tr>
        <tr>
          <td class="basemenus3_td2"></td>
        </tr>
        <tr>
          <td class="basemenus3_td3">
            <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
              <tr>
                <td class="basemenus3_td5" {{if $menu->c == 1}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageasst&t=pageb1factoryworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:4}'">全部任务<span id="factory_tasks_factoryTasks_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td7">接收任务</td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 2}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageasst&t=pageb1receive&m={%22a%22:1,%22b%22:2,%22c%22:2}&s={%22s%22:4}'">接收产品<span id="factory_tasks_receive4x6_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td7">产品任务</td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 3}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageasst&t=pageb1downloadprint&m={%22a%22:1,%22b%22:2,%22c%22:3}&s={%22s%22:4}'">下载打印大样<span id="factory_tasks_downloadAndPrint_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 4}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pageasst&t=pageb1manufacture&m={%22a%22:1,%22b%22:2,%22c%22:4}&s={%22s%22:4}'">完成产品<span id="factory_tasks_complete_span"></span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td class="basemenus3_td4"></td>
        </tr>
      </table>
    </div>
  {{else}}
  {{if $supervise->s == 5}}
    <div class="basemenus3_div">
      <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
        <tr>
          <td class="basemenus3_td1">
            Manage Tasks
          </td>
        <tr>
        <tr>
          <td class="basemenus3_td2"></td>
        </tr>
        <tr>
          <td class="basemenus3_td3">
            <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
              <tr>
                <td class="basemenus3_td5" {{if $menu->c == 1}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1factoryworks&m={%22a%22:1,%22b%22:2,%22c%22:1}&s={%22s%22:5}'">全部任务<span id="factory_tasks_factoryTasks_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td7">接收任务</td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 2}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1receive&m={%22a%22:1,%22b%22:2,%22c%22:2}&s={%22s%22:5}'">接收产品<span id="factory_tasks_receive4x6_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td7">产品任务</td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 3}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1downloadprint&m={%22a%22:1,%22b%22:2,%22c%22:3}&s={%22s%22:5}'">下载打印大样<span id="factory_tasks_downloadAndPrint_span"></span></td>
              </tr>
              <tr>
                <td class="basemenus3_td6" {{if $menu->c == 4}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1manufacture&m={%22a%22:1,%22b%22:2,%22c%22:4}&s={%22s%22:5}'">完成产品<span id="factory_tasks_complete_span"></span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td class="basemenus3_td4"></td>
        </tr>
      </table>
    </div>
    {{else}}
    {{if $menu->b == 1}}
      <div class="basemenus3_div">
        <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
          <tr>
            <td class="basemenus3_td1">
              Manage Tasks
            </td>
          <tr>
          <tr>
            <td class="basemenus3_td2"></td>
          </tr>
          <tr>
            <td class="basemenus3_td3">
              <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
                <tr>
                  <td class="basemenus3_td5" {{if $menu->c == 1}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagefactory&t=pageb1factoryworks&m={%22a%22:1,%22b%22:1,%22c%22:1}'">全部任务<span id="factory_tasks_factoryTasks_span"></span></td>
                </tr>
                <tr>
                  <td class="basemenus3_td7">接收任务</td>
                </tr>
                <tr>
                  <td class="basemenus3_td6" {{if $menu->c == 2}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagefactory&t=pageb1receive&m={%22a%22:1,%22b%22:1,%22c%22:2}'">接收产品<span id="factory_tasks_receive4x6_span"></span></td>
                </tr>
                <tr>
                  <td class="basemenus3_td7">产品任务</td>
                </tr>
                <tr>
                  <td class="basemenus3_td6" {{if $menu->c == 3}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagefactory&t=pageb1downloadprint&m={%22a%22:1,%22b%22:1,%22c%22:3}'">下载打印大样<span id="factory_tasks_downloadAndPrint_span"></span></td>
                </tr>
                <tr>
                  <td class="basemenus3_td6" {{if $menu->c == 4}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagefactory&t=pageb1manufacture&m={%22a%22:1,%22b%22:1,%22c%22:4}'">完成产品<span id="factory_tasks_complete_span"></span></td>
                </tr>
                <tr>
                  <td class="basemenus3_td7">自定义任务</td>
                </tr>
                <tr>
                  <td class="basemenus3_td6" {{if $menu->c == 5}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagefactory&t=pageb1processingownerworks&m={%22a%22:1,%22b%22:1,%22c%22:5}'">我给别人的任务<span id="factory_tasks_ownerworks_span"></span></td>
                </tr>
                <tr>
                  <td class="basemenus3_td6" {{if $menu->c == 6}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagefactory&t=pageb1processingassigneeworks&m={%22a%22:1,%22b%22:1,%22c%22:6}'">别人给我的任务<span id="factory_tasks_assigneeworks_span"></span></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="basemenus3_td4"></td>
          </tr>
        </table>
      </div>
    {{/if}}
  {{/if}}
  {{/if}}
{{/if}}
{{if $menu->b == 3}}
  <div class="basemenus3_div">
    <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
      <tr>
        <td class="basemenus3_td1">
          Manage Tasks
        </td>
      <tr>
      <tr>
        <td class="basemenus3_td2"></td>
      </tr>
      <tr>
        <td class="basemenus3_td3">
          <table class="basemenus3_table1" cellPadding="0" cellSpacing="0">
            <tr>
              <td class="basemenus3_td5" {{if $menu->c == 1}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1factoryworks&m={%22a%22:1,%22b%22:3,%22c%22:1,%22d%22:5}&opts={%22a%22:1}'">全部任务<span id="factory_tasks_factoryTasks_span"></span></td>
            </tr>
            <tr>
              <td class="basemenus3_td7">接收任务</td>
            </tr>
            <tr>
              <td class="basemenus3_td6" {{if $menu->c == 2}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1receive&m={%22a%22:1,%22b%22:3,%22c%22:2,%22d%22:5}&opts={%22a%22:1}'">接收产品<span id="factory_tasks_receive4x6_span"></span></td>
            </tr>
            <tr>
              <td class="basemenus3_td7">产品任务</td>
            </tr>
            <tr>
              <td class="basemenus3_td6" {{if $menu->c == 3}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1downloadprint&m={%22a%22:1,%22b%22:3,%22c%22:3,%22d%22:5}&opts={%22a%22:1}'">下载打印大样<span id="factory_tasks_downloadAndPrint_span"></span></td>
            </tr>
            <tr>
              <td class="basemenus3_td6" {{if $menu->c == 4}} style="color: #ff8800" {{/if}} onclick="location.href='?p=pagemanager&t=pageb1manufacture&m={%22a%22:1,%22b%22:3,%22c%22:4,%22d%22:5}&opts={%22a%22:1}'">完成产品<span id="factory_tasks_complete_span"></span></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td class="basemenus3_td4"></td>
      </tr>
    </table>
  </div>
{{/if}}
  {{/if}}

